// import store from '../'
// import Vue from 'vue'
import localstorage from '../../utils/localstorage'
export default {
  /**
   * 初始化 state, 用于解决页面刷新数据丢失问题
   * @param state
   */
  initState: function (state) {
    for (let key of Object.keys(state)) {
      if (localstorage.getLocalStorage(key)) state[key] = localstorage.getLocalStorage(key)
    }
    console.log(process.env.NODE_ENV)
  }
}
